package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RefundListMapper;
import com.ruoyi.system.domain.RefundList;
import com.ruoyi.system.service.IRefundListService;

/**
 * 退货单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
@Service
public class RefundListServiceImpl implements IRefundListService 
{
    @Autowired
    private RefundListMapper refundListMapper;

    /**
     * 查询退货单
     * 
     * @param id 退货单主键
     * @return 退货单
     */
    @Override
    public RefundList selectRefundListById(Long id)
    {
        return refundListMapper.selectRefundListById(id);
    }

    /**
     * 查询退货单列表
     * 
     * @param refundList 退货单
     * @return 退货单
     */
    @Override
    public List<RefundList> selectRefundListList(RefundList refundList)
    {
        return refundListMapper.selectRefundListList(refundList);
    }

    /**
     * 新增退货单
     * 
     * @param refundList 退货单
     * @return 结果
     */
    @Override
    public int insertRefundList(RefundList refundList)
    {
        return refundListMapper.insertRefundList(refundList);
    }

    /**
     * 修改退货单
     * 
     * @param refundList 退货单
     * @return 结果
     */
    @Override
    public int updateRefundList(RefundList refundList)
    {
        return refundListMapper.updateRefundList(refundList);
    }

    /**
     * 批量删除退货单
     * 
     * @param ids 需要删除的退货单主键
     * @return 结果
     */
    @Override
    public int deleteRefundListByIds(Long[] ids)
    {
        return refundListMapper.deleteRefundListByIds(ids);
    }

    /**
     * 删除退货单信息
     * 
     * @param id 退货单主键
     * @return 结果
     */
    @Override
    public int deleteRefundListById(Long id)
    {
        return refundListMapper.deleteRefundListById(id);
    }
}
